package me.zxc.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author zhangxucheng
 * @version 1.0
 * @since 2022/7/15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JSONType(orders = {"id", "chName", "enName", "hasChild", "childList"})
public class ModelNode {
    /**
     * id
     */
    private String id;
    /**
     * 中文路径
     */
    private String chName;
    /**
     * 英文路径
     */
    private String enName;
    /**
     * 是否有孩子结点
     */
    private boolean hasChild;
    /**
     * 子节点列表
     */
    private List<ModelNode> childList;
}
